package com.luck.emp.entity;

import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTCgD implements java.io.Serializable {
		/**
		 * pk
		 * 主键序列
		 **/
		Long cgdId;
		/**
		 * 已确认入库数量
		 **/
		Long confirmIn;
		/**
		 * 商品编码
		 **/
		String productCode;
		EmpTProdBase product;
		/**
		 * 数量
		 **/
		Long qty;
		/**
		 * 计量单位编号
		 **/
		String measUnit;
		/**
		 * 折扣率
		 **/
		Double discRatio;

		/**
		 * 基本采购价
		 **/
		Double purPrice;
		/**
		 * 已核销金额
		 **/
		Double payAmt;
		/**
		 * 核销状态
		 **/
		String hxStatus;
		/**
		 * 实际采购价
		 **/
		Double priceReal;
		/**
		 * 采购单号码
		 **/
		String cgCode;
	
	public EmpTCgD(){
	}
	
		public Long getCgdId(){
			return this.cgdId;
		}		
		public void setCgdId(Long cgdId){
			this.cgdId = cgdId;
		}

		public String getProductCode(){
			return this.productCode;
		}		
		public void setProductCode(String productCode){
			this.productCode = productCode;
		}

		public String getMeasUnit(){
			return this.measUnit;
		}		
		public void setMeasUnit(String measUnit){
			this.measUnit = measUnit;
		}
		public Double getDiscRatio(){
			return this.discRatio;
		}		
		public void setDiscRatio(Double discRatio){
			this.discRatio = discRatio;
		}
		public Double getPurPrice(){
			return this.purPrice;
		}		
		public void setPurPrice(Double purPrice){
			this.purPrice = purPrice;
		}
		public Double getPayAmt(){
			return this.payAmt;
		}		
		public void setPayAmt(Double payAmt){
			this.payAmt = payAmt;
		}
		public String getHxStatus(){
			return this.hxStatus;
		}		
		public void setHxStatus(String hxStatus){
			this.hxStatus = hxStatus;
		}
		public Double getPriceReal(){
			return this.priceReal;
		}		
		public void setPriceReal(Double priceReal){
			this.priceReal = priceReal;
		}
		public String getCgCode(){
			return this.cgCode;
		}		
		public void setCgCode(String cgCode){
			this.cgCode = cgCode;
		}

		public Long getConfirmIn() {
			return confirmIn;
		}

		public void setConfirmIn(Long confirmIn) {
			this.confirmIn = confirmIn;
		}

		public Long getQty() {
			return qty;
		}

		public void setQty(Long qty) {
			this.qty = qty;
		}

		public EmpTProdBase getProduct() {
			return product;
		}

		public void setProduct(EmpTProdBase product) {
			this.product = product;
		}

		public String getDiscRatioStr(){
			return FormateUtil.getInstance().formateDouble(this.discRatio);
		}
		public String getPurPriceStr(){
			return FormateUtil.getInstance().formateDouble(this.purPrice);
		}
		public String getPayAmtStr(){
			return FormateUtil.getInstance().formateDouble(this.payAmt);
		}
		public String getPriceRealStr(){
			return FormateUtil.getInstance().formateDouble(this.priceReal);
		}
	
}